/*
 * le styles for datawrapper
 */

@import 'common/colors';
@import 'common/fonts';
@import 'common/forms';
@import 'common/navbar';
@import 'common/modal';
@import 'common/footer';
@import 'common/alert';
@import 'common/buttons';
@import 'common/login';
@import 'common/cms';
@import 'common/select';
@import 'common/spacing-helper';
@import 'common/tabs';
@import 'chart/base';
@import 'settings/base';
@import 'gallery'; // should this live in gallery plugin?
@import 'mycharts';

@viewport-mobile: ~'only screen and (max-width: 400px)';
@viewport-medium: ~'only screen and (max-width: 1199px)';

body {
    background: @dw_background;
    color: #333;
    position: relative;
    font-family: @base-font;
}

body a {
    color: @dw_blue_medium;
    &:hover {
        color: @dw_blue_dark;
    }
}

body.dw {
    h1 {
        font-weight: 300;
        font-size: 32px;
    }
}

.dw-alert-message {
    padding: 10px;
    width: 100%;
    z-index: 10000;
    background: #fcf8e3;
    color: #000;
    border-bottom: 1px solid #edddbe;
    box-sizing: border-box;
    text-align: center;
    h2,
    p,
    li {
        color: #000;
    }
    li {
        display: inline-block;
        margin-right: 1em;
    }
    h2 {
        margin: 0 0 0px;
        font-size: 18px;
        font-weight: bold;
    }
    code {
        background: #300;
        font-size: 14px;
        color: #ff6;
        border: 0;
    }
    a {
        font-weight: bold;
        text-decoration: underline;
    }

    &.dw-alert-warning {
        background: #e35b5b;
        border-bottom: 1px solid #c71e1d;
        color: white;
        font-weight: bold;
        h2,
        p,
        li {
            color: white;
        }
        a {
            color: #f6d99d;
        }
    }
}

html h2 {
    font-size: 24px;
    line-height: 36px;
}
html h3 {
    font-size: 18px;
    line-height: 27px;
}

html .navbar-static-top {
    margin-bottom: 30px;
}

#recent-charts {
    list-style: none;
    height: 200px;
    margin-right: 30px;
}

#recent-charts img {
    // box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    background: #fff;
}

@media (max-width: 979px) {
    .nav-collapse,
    .nav-collapse.collapse {
        height: 0;
        overflow: hidden;
        background: #f7f7f7;
        z-index: 10000;
        position: absolute;
        left: -20px;
        right: -20px;
        top: 46px;
    }

    .nav-collapse li {
        padding: 0px 5px;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #ddd;
    }

    .nav-collapse li i {
        margin-right: 10px;
    }

    body h1.title {
        font-size: 36px;
        margin-bottom: 10px;
    }

    body h1.title small {
        white-space: normal;
        display: block;
        line-height: 1.1;
        font-size: 20px;
        margin-bottom: 20px;
    }

    body .docs h2 {
        font-size: 21px;
    }

    body .navbar li a .tt {
        display: inline;
    }
}
.nav li.dropdown.open .caret,
.nav li.dropdown.open.active .caret,
.nav li.dropdown.open a:hover .caret {
    border-bottom-color: #000;
    border-top-color: #000;
}

.dw .toplinks {
}

.half {
    width: 50%;
    float: left;
}

.half select {
    width: 90%;
}

.span4 .well .span4 {
    width: 90%;
}

.dw-logo {
    font-weight: 500;
    color: #0063a5;
    letter-spacing: -1px;
}

.dw-logo .wrap {
    font-style: normal;
    color: #d8d8d8;
}
.dw-logo-type {
    font-size: 24px;
    line-height: 34px;
    margin-left: 0px;
}
.dw-logo-type a:hover,
.dw-logo-type a:focus {
    color: #0063a5;
    text-decoration: none;
}

.dw .dw-logo-sub {
    margin-bottom: 40px;
    padding-left: 15px;
    font-size: 11px;
    color: #999;
}

.intro-head .dw-logo-type {
    margin-top: 1em;
}

h3 label.radio {
    font-size: 18px;
    font-weight: bold;
}

h3 {
    margin-bottom: 1em;
}
.page-header h3 {
    margin-bottom: 0;
}
.well h3 {
    margin-bottom: 0.4em;
}

.fat-buttons .btn-large {
    width: 100%;
}

.dw .thumbnail > h5 {
    margin-top: 5px;
}

.dw-intro .about li {
    margin: 1ex 0 1ex;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    color: #333;
}

.input-xxlarge,
.btn-xxlarge {
    font-size: 150%;
    height: 27px;
    line-height: 27px;
}

.login-form .input-large {
    width: 95%;
}

.link-list li h3 {
    margin-bottom: 12px;
    line-height: 18px;
}

.link-list li h3 small {
    font-size: 13px;
}

.link-list li h3 i {
    margin-top: 4px;
}

.well-danger {
    background-color: #fee5e5;
    border: 1px solid #edd;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-actions {
    background: #f2f2f2;
    border-radius: 0 0 10px 10px;
}

.well-danger .form-actions {
    background: transparent;
}

.page-header h2 {
    margin-bottom: 0;
}

#csv-parse-options label {
    padding-right: 1em;
}

.skip-rows i {
    position: relative;
    top: 2px;
    cursor: pointer;
}

dl.dl-horizontal dt {
    width: 150px;
    text-align: left;
    padding-top: 17px;
}

dl.dl-horizontal dd {
    margin-left: 160px;
    padding-top: 17px;
}

@media (min-width: 768px) and (max-width: 979px) {
    .dw .dw-logo-type {
        font-size: 22px;
        line-height: 36px;
    }

    .dw .dw-logo-sub {
        font-size: 11px;
        padding-left: 5px;
        white-space: nowrap;
    }
}

.tooltip {
    opacity: 1 !important;
}

html .tooltip .tooltip-inner {
    background: #fff;
    color: #000;
    // box-shadow: 0 0 14px rgba(0,0,0,.1);
    font-size: 11px;
    border: 1px solid #000;
    line-height: 14px;
    text-align: left;
    position: relative;
}

.navbar-static-top .tooltip .tooltip-inner {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.collapse-hidden:before {
    content: '+ ';
}

.collapse-shown:after {
    content: '';
}

h1.title,
.admin h1.title {
    font-size: 38px;
    margin: 0px 0 48px;
    font-weight: 300;
    letter-spacing: -1px;
}

h1.title small {
    white-space: nowrap;
}

h2,
h3 {
    font-weight: 300;
    font-size: 24px;
    margin: 0.5em 0 0.5em;
}

.admin h2,
.admin h3 {
    font-weight: 300;
    font-size: 24px;
    margin-top: 0;
}

.docs h4 {
    margin: 20px 0 10px;
}

.docs p,
.docs li,
.docs div {
    font-size: 14px;
    line-height: 22px;
}

.docs .alert big {
    line-height: 1.3;
}

.error .big {
    font-size: 20px;
    line-height: 30px;
    color: #b94a48;
    margin-bottom: 1em;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
}

ul.options {
    position: relative;
}

ul.options li {
    list-style: none;
    margin-bottom: 1em;
    position: relative;
}

ul.options li i:first-child {
    position: absolute;
    left: -20px;
    top: 2px;
}

.section {
    margin-bottom: 20px;
}

form.well form {
    margin: 0;
}

.well {
    // box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.05) inset;
    box-shadow: inset 0px 2px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #dddbdb;
    border-right-color: #efefef;
    border-bottom-color: #efefef;
}

.btn-primary.loading:after {
    content: url('../img/btn-loading.gif');
    float: right;
    left: 1px;
    margin-left: 5px;
    position: relative;
    top: 1px;
}

.form-horizontal.compact {
    margin-bottom: 20px;
}

.form-horizontal.compact .control-group {
    margin-bottom: 5px;
}

.form-horizontal.compact .control-label {
    width: 140px;
}
.form-horizontal.compact .controls {
    margin-left: 150px;
}

.icon-rotate {
    background: url(../img/icon-rotate.png) no-repeat;
    width: 16px;
}

.dw .modal-backdrop {
    background-color: #555;
}

.dw .modal-header h1 {
    font-weight: normal;
}

.docs li {
    margin-bottom: 8px;
}

.demo-datasets p {
    margin: 5px 0 10px;
}

.ender-overlay .close-button {
    background: none repeat scroll 0 0 #333333;
    border: 2px solid #ffffff;
    border-radius: 13px 13px 13px 13px;
    // box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-family: Arial;
    height: 23px;
    line-height: 24px;
    letter-spacing: 2;
    margin: 0;
    position: absolute;
    right: -10px;
    text-align: center;
    text-decoration: none;
    top: -10px;
    text-shadow: none;
    width: 23px;
    opacity: 1;
}

.browser {
    display: inline-block;
    width: 66px;
    height: 66px;
    margin: 10px 10px;
    background-image: url(/static/img/browser.png);
}

.browser.firefox {
    background-position: -72px 0;
}

.browser.opera {
    background-position: -142px 0;
}

.browser.safari {
    background-position: -211px 0;
}

.browser.msie {
    background-position: -280px 0;
}

.arguments .span4 {
    text-align: center;
}

.arguments p,
.home .gallery p {
    font-size: 16px;
    padding: 0 20px;
    text-align: center;
    line-height: 26px;
    color: #656565;
}

.arguments {
    margin-bottom: 40px;
}

.arguments h2 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 10px;
}

.home .gallery ul {
    margin-bottom: 40px;
}

.home .big-head h1 {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    color: #222;
    line-height: 60px;
    margin-bottom: 0px;
}

.home .big-head p {
    margin-bottom: 30px;
    color: #656565;
    padding: 0 20px;
    text-align: center;
    font-size: 16px;
    line-height: 26px;
}

.home .docs h3 {
    font-weight: 400;
}

.home .docs p {
    font-size: 16px;
    line-height: 26px;
}

.icon-quickstart,
.icon-help,
.icon-info,
.icon-github {
    width: 32px;
    height: 32px;
    display: inline-block;
    background-image: url(/static/img/home-icons.png);
    background-repeat: no-repeat;
    vertical-align: sub;
}
.icon-quickstart {
    background-position: 0 0;
}

.icon-help {
    background-position: -32px 0;
}

.icon-info {
    background-position: -64px 0;
}

.icon-github {
    background-position: -96px 0;
}

.hide-smart {
    position: absolute !important;
    left: -10000px;
    top: 0;
    width: 100%;
}

select,
textarea,
input[type='text'],
input[type='password'],
input[type='datetime'],
input[type='datetime-local'],
input[type='date'],
input[type='month'],
input[type='time'],
input[type='week'],
input[type='number'],
input[type='email'],
input[type='url'],
input[type='search'],
input[type='tel'],
input[type='color'],
.uneditable-input {
    border-radius: 1px;
}

.did-you-know {
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.4;
    padding: 1.2em 1.5em;
    background: #d7eff7;
    color: #444;
    border-radius: 4px;
    .close {
        color: #1d81a2;
        opacity: 1;
        position: relative;
        top: 2px;
        text-shadow: none;
        .im {
            font-size: 22px;
        }
        &:hover {
            color: #15607a;
        }
    }
    h3 {
        font-weight: bold;
        margin-top: 0;
        color: #444;
        font-size: 17px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 0.5em;
        line-height: 1.3;
    }
    p {
        font-weight: 400;
        .im-graduation-hat {
            color: #1d81a2;
        }
        a {
            color: #1d81a2;
            font-weight: bold;
            text-decoration: underline;
        }
        &:last-child {
            margin-bottom: 0;
        }
        .im-graduation-hat {
            font-size: 18px;
            vertical-align: middle;
        }
    }
}
.well .did-you-know {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

button.btn > i.im {
    font-size: 0.8rem !important;
    vertical-align: middle;
}

button.btn-small > i.im {
    font-size: 0.7rem !important;
}

// Make buttons look and behave just like links:
.plain-link {
    background: transparent;
    border: 0;
    padding: 0;
    line-height: inherit;
    font-size: inherit;
    vertical-align: inherit;
    color: @dw_blue_medium;

    &:hover {
        text-decoration: underline;
        color: @dw_blue_dark;
    }
}
